-- GENERATED SPELL FOR [Smoldering Construct] --


function spell0_27362(pUnit, Event) --@Backlash,Self--
pUnit:FullCastSpellOnTarget(51439,pUnit)
pUnit:RegisterEvent('Sorts_27362', 6342, 1)
end

function Sorts_27362(pUnit, Event)
local choix_sorts_27362 = math.random(0, 0)
if choix_sorts_27362 == 0 then
pUnit:RegisterEvent('spell0_27362', 1, 1)
end
end

function mob27362_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27362', math.random(1500, 3000), 1)
end

function mob27362_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27362_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27362_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27362, 1, 'mob27362_Action')
RegisterUnitEvent(27362, 2, 'mob27362_Leave')
RegisterUnitEvent(27362, 3, 'mob27362_Kill')
RegisterUnitEvent(27362, 4, 'mob27362_Die')
